package com.example.demo.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.example.demo.entity.Competition;

@Mapper
@Repository
public interface CompetitionAdMapper {
	//查找全部赛事
	List<Competition> getAllCompetitionInfoAd();
	
	//修改赛事状态为已同意
	int approveCompetition(String OrganizersName,String CompetitionName,String CompetitionType,String CompetitionDate,String CompetitionRemarks,String CompetitionPrice);
	
	//修改赛事状态为已拒绝
	int refuseCompetition(String OrganizersName,String CompetitionName,String CompetitionType,String CompetitionDate,String CompetitionRemarks,String CompetitionPrice);
	
	//查询审批记录
	List<Competition> queryByDate(Date dateBegin,Date dateEnd); 
}


